
import {createAction} from 'redux-actions'

// 01-渲染指令
export const load_todo = createAction('load_todo')
export const load_todo_success = createAction('load_todo_success')

// 02-新增指令
export const add_todo = createAction('add_todo')
export const add_todo_success = createAction('add_todo_success')

// 03.删除指令
export const remove_todo = createAction('remove_todo')
export const remove_todo_success = createAction('remove_todo_success')

//04 是否删除
export const modify_todo = createAction('modify_todo')
export const modify_todo_success = createAction('modify_todo_success')

// 05-筛选指令
export const modify_todo_filter = createAction('modify_todo_filter')
export const modify_todo__filter_success = createAction('modify_todo_filter_success')

// 06-清除已完成任务
export const clear_todo_completed = createAction('clear_todo_completed')
export const clear_todo_completed_success = createAction('clear_todo_completed_success')

// 05-修改指令
export const modify_todo_edit = createAction('modify_todo_edit')
export const modify_todo__edit_success = createAction('modify_todo_edit_success')

// 08 任务名称确认
export const modify_todo_name = createAction('modify_todo_name')
export const modify_todo__name_success = createAction('modify_todo_name_success')

/*** 
 * 01-发送请求获取数据 load_todo
 * 02-异步操作完成之后触发新的指令 load_todo_success
 * 
*/